package twitter;

import twitter4j.*;
import twitter4j.conf.ConfigurationBuilder;

public class TwitterClient implements ITwitterClient{
	
	private TwitterFactory tf;
	private Twitter twitter;

	public TwitterClient() {
		ConfigurationBuilder cb = new ConfigurationBuilder();
		cb.setDebugEnabled(true)
			.setOAuthConsumerKey("GZ6tiy1XyB9W0P4xEJudQ")
			.setOAuthConsumerSecret("gaJDlW0vf7en46JwHAOkZsTHvtAiZ3QUd2mD1x26J9w")
			.setOAuthAccessToken("1366513208-MutXEbBMAVOwrbFmZtj1r4Ih2vcoHGHE2207002")
			.setOAuthAccessTokenSecret("RMPWOePlus3xtURWRVnv1TgrjTyK7Zk33evp4KKyA");
		tf = new TwitterFactory(cb.build());
		twitter = tf.getInstance();
	}
	
	public void publishUuid(TwitterStatusMessage message) throws Exception {
			Status status = twitter.updateStatus(message.getTwitterPublicationString());
	};
	
	
}